package com.zzyl.service;

import com.aliyun.iot20180120.models.DeleteDeviceRequest;
import com.aliyun.iot20180120.models.QueryDeviceDetailRequest;
import com.aliyun.iot20180120.models.QueryDevicePropertyStatusRequest;
import com.aliyun.iot20180120.models.QueryThingModelPublishedRequest;
import com.zzyl.base.PageResponse;
import com.zzyl.base.ResponseResult;
import com.zzyl.dto.DeviceDto;
import com.zzyl.dto.DevicePageQueryDto;
import com.zzyl.vo.DeviceDataGraphVo;
import com.zzyl.vo.DeviceVo;
import com.zzyl.vo.ProductVo;
import com.zzyl.vo.PropertyStatusInfo;

import java.util.List;

/**
 * @author sjqn
 */
public interface DeviceService {

    /**
     * 从物联网平台同步产品列表
     */
    void syncProductList();

    List<ProductVo> allProduct();

    ResponseResult<Void> registerDevice(DeviceDto deviceDto);

    PageResponse<DeviceVo> pageQueryDevice(DevicePageQueryDto devicePageQueryDto);

    ResponseResult<DeviceVo> queryDeviceDetail(QueryDeviceDetailRequest request);


    ResponseResult<List> QueryDevicePropertyStatus(QueryDevicePropertyStatusRequest request);

    ResponseResult queryThingModelPublished(QueryThingModelPublishedRequest request);

    void updateDevice(DeviceDto deviceDto);

    void deleteDevice(DeleteDeviceRequest request);


}